<template>
	<view>
		<web-view v-if="src" :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: '',
			}
		},
		onNavigationBarButtonTap(e) {
			console.log(1111, e)
			this.$scope.$getAppWebview().children()[0].close()
			setTimeout(() => {
				uni.navigateBack()
			}, 0)
			// uni.navigateTo({
			// 	url:'./meituan'
			// })
			// uni.redirectTo({
			// 	url: '../element/element'
			// })
		},
		onLoad(option) {
			this.src = decodeURI(option.src)
			console.log(this.src)
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>

</style>
